import fileLoader from 'src/helper/file'

function outputElementForm () {
  const cwd = process.cwd()
  // TODO: 输出路径后期需要根据项目文件夹调整
  const path = cwd + '/'
  return fileLoader.outputPreset('element_form', path)
}

enum PRESET_NAME {
  ELEMENT_FORM = 'element:form'
}

export default async function (presetName: PRESET_NAME, presetFileName: string) {
  switch (presetName) {
    case PRESET_NAME.ELEMENT_FORM:
      await outputElementForm()
      break;
  }
}